package com.xiaoxu.intranetweb.mybatisplusSzappdb.Dic;

import org.springframework.stereotype.Component;

@Component
public class TCompeteDic {
    public String getStatusDic(Integer status) {
        String statusDic = "";
        if (status == null) {
            return statusDic;
        }
        switch (status) {
            case 0:
                statusDic = "无状态";
                break;
            case 1:
                statusDic = "公告中";
                break;
            case 2:
                statusDic = "公告中";
                break;
            case 3:
                statusDic = "公告中";
                break;
            case 4:
                statusDic = "公告中";
                break;
            case 5:
                statusDic = "公告中";
                break;
            case 6:
                statusDic = "公告中";
                break;
            case 7:
                statusDic = "公告中";
                break;
            case 8:
                statusDic = "公告中";
                break;
            case 9:
                statusDic = "公告中";
                break;
            case 10:
                statusDic = "公告中";
                break;
            case 11:
                statusDic = "发标中";
                break;
            case 12:
                statusDic = "发标中";
                break;
            case 13:
                statusDic = "发标中";
                break;
            case 14:
                statusDic = "发标中";
                break;
            case 15:
                statusDic = "发标中";
                break;
            case 16:
                statusDic = "发标中";
                break;
            case 17:
                statusDic = "发标中";
                break;
            case 18:
                statusDic = "发标中";
                break;
            case 19:
                statusDic = "发标中";
                break;
            case 20:
                statusDic = "发标中";
                break;
            case 21:
                statusDic = "投标中";
                break;
            case 22:
                statusDic = "投标中";
                break;
            case 23:
                statusDic = "投标中";
                break;
            case 24:
                statusDic = "投标中";
                break;
            case 25:
                statusDic = "投标中";
                break;
            case 26:
                statusDic = "投标中";
                break;
            case 27:
                statusDic
                        = "投标中";
                break;
            case 28:
                statusDic = "投标中";
                break;
            case 29:
                statusDic = "投标中";
                break;
            case 30:
                statusDic = "投标中";
                break;
            case 31:
                statusDic = "开标中";
                break;
            case 32:
                statusDic = "开标中";
                break;
            case 33:
                statusDic = "开标中";
                break;
            case 34:
                statusDic = "开标中";
                break;
            case 35:
                statusDic = "开标中";
                break;
            case 36:
                statusDic = "开标中";
                break;
            case 37:
                statusDic = "开标中";
                break;
            case 38:
                statusDic = "开标中";
                break;
            case 39:
                statusDic = "开标中";
                break;
            case 40:
                statusDic = "开标中";
                break;
            case 41:
                statusDic = "评标中";
                break;
            case 42:
                statusDic = "评标中";
                break;
            case 43:
                statusDic = "评标中";
                break;
            case 44:
                statusDic = "评标中";
                break;
            case 45:
                statusDic = "评标中";
                break;
            case 46:
                statusDic = "评标中";
                break;
            case 47:
                statusDic = "评标中";
                break;
            case 48:
                statusDic = "评标中";
                break;
            case 49:
                statusDic = "评标中";
                break;
            case 50:
                statusDic = "评标中";
                break;
            case 51:
                statusDic = "定标";
                break;
            case 52:
                statusDic = "定标";
                break;
            case 53:
                statusDic = "定标";
                break;
            case 54:
                statusDic = "定标";
                break;
            case 55:
                statusDic = "定标";
                break;
            case 56:
                statusDic = "定标";
                break;
            case 57:
                statusDic = "定标";
                break;
            case 58:
                statusDic = "定标";
                break;
            case 59:
                statusDic = "定标";
                break;
            case 60:
                statusDic = "定标";
                break;
            default:
                statusDic = "无状态";
                break;
        }
        return statusDic;
    }
//    OPEN_MIN_BID是否开启最小投标量 0未开启 1开启
    public String getOpenMinBidDic(Integer openMinBid) {
        String openMinBidDic = "";
        if (openMinBid == null) {
            return openMinBidDic;
        }
        switch (openMinBid) {
            case 0:
                openMinBidDic = "未开启";
                break;
            case 1:
                openMinBidDic = "开启";
                break;
            default:
                openMinBidDic = "未开启";
                break;
        }
        return openMinBidDic;
    }
    //PRICE_SHOW是否显示竞标底价 0不显示 1显示
    public String getPriceShowDic(Integer priceShow) {
        String priceShowDic = "";
        if (priceShow == null) {
            return priceShowDic;
        }
        switch (priceShow) {
            case 0:
                priceShowDic = "不显示";
                break;
            case 1:
                priceShowDic = "显示";
                break;
            default:
                priceShowDic = "不显示";
                break;
        }
        return priceShowDic;
    }
}
